//
//  Player.m
//  A_Project_DLS151129_SQ
//
//  Created by 151129-49宋强 on 16/1/28.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "Player.h"

@implementation Player
+ (Player *)shareInstance:(AVPlayerItem *)playItem
{
    static Player *player = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        player = [Player playerWithPlayerItem:playItem];
       // [player pause];
    });
    [player replaceCurrentItemWithPlayerItem:playItem];
    return player;
}
@end
